projects
/
project
/
bcm63xx
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
71919cf
)
MIPS: fix inconsistency in config option for cache operation mode
author
Daniel Schwierzeck
<
[email protected]
>
Mon, 2 Apr 2012 02:57:55 +0000
(
02:57
+0000)
committer
Marek Vasut
<
[email protected]
>
Mon, 2 Apr 2012 13:54:53 +0000
(15:54 +0200)
Commit
ab2a98b11716364bc5a8c43cdfa7fee176cda1d8
missed to
use the new config option in dcache_enable().
Fix this to avoid inconsistencies if someone wants to disable
and enable D-caches.
Signed-off-by: Daniel Schwierzeck <
[email protected]
>
arch/mips/cpu/mips32/cache.S
patch
|
blob
|
history
diff --git
a/arch/mips/cpu/mips32/cache.S
b/arch/mips/cpu/mips32/cache.S
index 5ce0ec45fc3509fa81a27e0a5e7ea342d3ad1048..e683e8be8cb9e8b42c1f53ac300fafea7672bdff 100644
(file)
--- a/
arch/mips/cpu/mips32/cache.S
+++ b/
arch/mips/cpu/mips32/cache.S
@@
-30,6
+30,10
@@
#include <asm/addrspace.h>
#include <asm/cacheops.h>
+#ifndef CONFIG_SYS_MIPS_CACHE_MODE
+#define CONFIG_SYS_MIPS_CACHE_MODE CONF_CM_CACHABLE_NONCOHERENT
+#endif
+
#define RA t8
/*
@@
-224,7
+228,7
@@
LEAF(dcache_enable)
mfc0 t0, CP0_CONFIG
ori t0, CONF_CM_CMASK
xori t0, CONF_CM_CMASK
- ori t0, CONF
_CM_CACHABLE_NONCOHERENT
+ ori t0, CONF
IG_SYS_MIPS_CACHE_MODE
mtc0 t0, CP0_CONFIG
jr ra
END(dcache_enable)